package com.joven.security.utils;

import lombok.extern.slf4j.Slf4j;

import javax.servlet.http.HttpServletResponse;

/**
 * @Author wzj
 * @Date 2023-03-01 15:33
 **/
@Slf4j
public class WebUtils {

    public static String printString(HttpServletResponse response, String message) {
        try {
            response.setStatus(200);
            response.setContentType("application/json");
            response.setCharacterEncoding("utf-8");
            response.getWriter().print(message);
        } catch (Exception e) {
            log.error("exception :{}", e);
        }
        return null;
    }
}
